Kerberos was originally developed at the Massachusetts Institute of Technology and quickly became a popular network authentication protocol for indirect, third-party authentication services.

Kerberos uses symmetric encryption to encrypt the exchange of messages among users, key distribution centers (KDC), and applications. This provides confidentiality of the communications but does not protect against other forms of attack, such as a brute force on the passwords or compromise of the data stored in the KDC.

Kerberos is designed to provide strong authentication using symmetric cryptography.

It is an operational implementation of key distribution technology and affords a key distribution center, authentication service and ticket granting service. Hosts, applications, and servers all must be “Kerberized” to be able to communicate with the user and the ticket-granting service (TGS).

Kerberos Applications

Kerberos is based on a centralized architecture, thereby reducing administrative effort in managing all authentications from a single server. Furthermore, the use of Kerberos provides support for the following:

Kerberos Process

The process in the use of Kerberos is substantially different from indirect authentication technologies and is considerably more complex. The following simplified explanation of the Kerberos process is adapted from the 1993 book Applied Cryptography: Protocols, Algorithms, and Source Code in C , by Bruce Schneier.

  1. Before an access control subject can request a service from an access control object, it must first obtain a ticket to the target object; hence, the access control subject first must request from the Kerberos authentication server (AS) a ticket to the Kerberos TGS. This request takes the form of a message containing the user’s name and the name of the respective TGS.

  2. The AS looks up the access control subject in its database and then generates a session key for use between the access control subject and the TGS. Kerberos encrypts this session key using the access control subject’s secret key. Then, it creates a ticket-granting ticket (TGT) for the access control subject to present to the TGS and encrypts the TGT using the TGS’s secret key. The AS sends both encrypted messages back to the access control subject.

  3. The access control subject decrypts the first message and recovers the session key. Next, the access control subject creates an authenticator consisting of the access control subject’s name, address, and a time stamp, all encrypted with the session key that was generated by the AS.

  4. The access control subject then sends a request to the TGS for a ticket to a particular target server. This request contains the name of the server, the TGT received from Kerberos, which is already encrypted with the TGS’s secret key, and the encrypted authenticator.

  5. The TGS decrypts the TGT with its secret key and then uses the session key included in the TGT to decrypt the authenticator. It compares the information in the authenticator with the information in the ticket, the access control subject’s network address with the address from which the request was sent and the time stamp with the current time. If everything matches, it allows the request to proceed.

  6. The TGS creates a new session key for the user and target server and incorporates this key into a valid ticket for the access control subject to present to the access control object server. This ticket also contains the access control subject’s name, network address, a time stamp, and an expiration time for the ticket—all encrypted with the target server’s secret key—and the name of the server. The TGS also encrypts the new access control subject target session key using the session key shared by the access control subject and the TGS. It sends both messages to the access control subject.

  7. The access control subject decrypts the message and extracts the session key for use with the target access control object server. The access control subject is now ready to authenticate themselves to the access control object server. They create a new authenticator encrypted with the access control subject target session key that the TGS generated. To request access to the target access control object server, the access control subject sends along the ticket received from Kerberos, which is already encrypted with the target access control object server’s secret key, and the encrypted authenticator. Because this authenticator contains plaintext encrypted with the session key, it proves that the sender knows the key. Just as important, encrypting the time of day prevents an eavesdropper who records both the ticket and the authenticator from replaying them later.

  8. The target access control object server decrypts and checks the ticket and the authenticator, also confirming the access control subject’s address and the time stamp. If everything checks out, the access control object server now knows the access control subject is who they claim to be, and the two share an encryption key that they can use for secure communication. (Since only the access control subject and the access control object server share this key, they can assume that a recent message encrypted in that key originated with the other party.)

  9. For those applications that require mutual authentication, the server sends the access control subject a message consisting of the time stamp plus one, encrypted with the session key. This serves as proof to the user that the access control object server knew its secret key and was able to decrypt the ticket and the authenticator.

Kerberos Considerations

To provide for the successful implementation and operation of Kerberos, the following should be considered:

Kerberos is an excellent example of the greatest risk associated with most SSO solutions. The central and single point of failure is the KDC.

Kerberos requires that all devices on the network use Kerberos to communicate, and if the KDC is unavailable, then no one can communicate.

Also, a compromise of the KDC would enable an attacker to have unlimited access to everything. These risks are usually mitigated via replication and physical protection of the KDC.

Kerberos Tools

Kerberos is available in many commercial products, and a free implementation of Kerberos is available from MIT. The tools used to support Kerberos in a Windows Server 2003 environment can be found as part of the Windows Server 2003 Resource Kit Tools. The Microsoft Windows Server 2003 Resource Kit Tools are a set of tools to help administrators streamline management tasks such as troubleshooting operating system issues, managing Active Directory, configuring networking and security features, and automating application deployment. The tools are:

Ksetup.exe. Kerberos Setup is a command-line tool that can be used to configure Kerberos interoperability. Including, but not limited to: